//
//  CustomKeyBoard.h
//  GuoBang
//
//  Created by 梧桐树 on 16/4/27.
//  Copyright © 2016年 梧桐树. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FunctionView.h"
#import "KeyBoardTypeView.h"
#import "EmojiView.h"
@protocol CustomKeyBoardDelegate <NSObject>

-(void)changeTabFrame:(int)lineNum fontHeight:(int)fontHeight emojiHi:(int)emojiHi;
-(void)showFunction:(int)nowFun height:(int)height;
-(void)sendMessage:(NSString *)message;
-(void)selectPhoto;
-(void)takePhoto;
-(void)emojiHidens;
-(void)tixingAction;
-(void)yuyinAction;
-(void)yuyinStop;
-(void)yuyinNo;
@end

@interface CustomKeyBoard : UIView<UITextViewDelegate,KeyBoardTypeViewDelegate,EmojiViewDelegate,FunctionViewDelegate>
{

    UILabel *placehoderLaber;
    UIView *bgView;
    UITextView *textsView;
    UIButton *functionBtn;
    FunctionView *functionView;
    KeyBoardTypeView*keyboardView;
    EmojiView *emojiView;
    
}
@property(nonatomic,strong)UIButton *keyBoardTypeBtn;
@property(nonatomic,strong)UIButton *luyin;
@property(nonatomic,assign)id<CustomKeyBoardDelegate>delegate;
@property int lineNum;
@property  int functionIsShow;//1,消失，2出现
@property  int kbIsShow;//1,消失，2出现
@property  int emojiIsShow;//1,消失，2出现
@property int emojiHi;
-(void)functionShow;
-(void)functionHiden;
-(void)keyboardHiden;
-(void)emojiHiden;
@end
